<?php /* Smarty version 2.6.18, created on 2016-12-14 08:41:29
         compiled from pay/pay.set.tpl.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'in_array', 'pay/pay.set.tpl.php', 99, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
          <section class="col-lg-12 connectedSortable">
             <div class="box box-default box-solid">
                 <form action="" method="post">
                    <div class="box-header with-border">
                        <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                        <p class="box-title">补贴设置</p>
                    </div>
                    <div class="box-body">
                          <div class=" form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     班主任补贴：
                                </label>
                                <div class="col-md-4">
                                     <input type="text" class="form-control" name="set_classsub" value="<?php echo $this->_tpl_vars['set_data']['set_classsub']; ?>
" placeholder="每个学生补贴多少元">
                                </div>
                          </div>     	   
                    </div><!--box-body -->
                     <div class="box-header with-border">
                        <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                        <p class="box-title">不计常规补贴项目设置</p>
                    </div>
                    <div class="box-body">
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     不计常规补贴项目：
                                </label>
                                <div class="col-md-6">
								<?php $_from = $this->_tpl_vars['set_data']['list_unitem']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                     <label class="choice"><input type="checkbox" name="set_unitem[]" value="<?php echo $this->_tpl_vars['key']; ?>
" <?php if ($this->_tpl_vars['value']['check'] == '1'): ?>checked<?php endif; ?>> <?php echo $this->_tpl_vars['value']['name']; ?>
</label>
								<?php endforeach; endif; unset($_from); ?>	 
                                </div>
                        </div>                               
                    </div><!--box-body --> 
                    <div class="box-header with-border">
                        <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                        <p class="box-title">全勤奖设置</p>
                    </div>
                    <div class="box-body">
                        <div class="form-group" >
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     不计全勤奖种设置：
                                </label>
                                <div class="input-group col-md-8">
									<?php $_from = $this->_tpl_vars['set_data']['list_uncheck']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                     <label class="choice"><input type="checkbox" name="set_uncheck[]" value="<?php echo $this->_tpl_vars['key']; ?>
" <?php if ($this->_tpl_vars['value']['check'] == '1'): ?>checked<?php endif; ?>> <?php echo $this->_tpl_vars['value']['name']; ?>
</label>
									<?php endforeach; endif; unset($_from); ?>
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     月全勤奖：
                                </label>
                                <div class="input-group col-md-4">
                                     <input type="text" class="form-control" name="set_mchecksub" value="<?php echo $this->_tpl_vars['set_data']['set_mchecksub']; ?>
">
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     期末全勤奖：
                                </label>
                                <div class="input-group col-md-4">
                                     <input type="text" class="form-control" name="set_lchecksub" value="<?php echo $this->_tpl_vars['set_data']['set_lchecksub']; ?>
">
                                </div>
                        </div>                                 
                    </div><!--box-body --> 
                    <div class="box-header with-border">
                        <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                        <p class="box-title">值日补贴设置</p>
                    </div>
                    <div class="box-body">
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     普通值日位置一次：
                                </label>
                                <div class="input-group col-md-4">
                                     <input type="text" class="form-control" name="set_cdutysub"  value="<?php echo $this->_tpl_vars['set_data']['set_cdutysub']; ?>
">
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     特殊值日位置一次：
                                </label>
                                <div class="input-group col-md-4">
                                     <input type="text" class="form-control" name="set_sdutysub"  value="<?php echo $this->_tpl_vars['set_data']['set_sdutysub']; ?>
">
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     特殊值日位置：
                                </label>
                                <div class="input-group col-md-8">
									<?php $_from = $this->_tpl_vars['area_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                     <label class="choice"><input type="checkbox" name="set_dutyarea[]" value="<?php echo $this->_tpl_vars['key']; ?>
" <?php if ($this->_tpl_vars['set_dutyarea'] == ' '): ?><?php else: ?><?php if (((is_array($_tmp=$this->_tpl_vars['key'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['set_dutyarea']) : in_array($_tmp, $this->_tpl_vars['set_dutyarea']))): ?>checked<?php endif; ?><?php endif; ?>> <?php echo $this->_tpl_vars['key']; ?>
</label>
									<?php endforeach; endif; unset($_from); ?>
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     不计值日日期：
                                </label>
                                <div class="input-group col-md-2" style="float:left;">
                                      <input id="from" class="form-control" type="text" name="set_dutystart" value="<?php echo $this->_tpl_vars['set_data']['set_dutystart']; ?>
">
                                        <div class="input-group-addon">
                                            <i class="fa fa-calendar"></i>
                                        </div>
                                </div>
                                <span style="float:left;"> ~ </span>
                                <div class="input-group col-md-2">
                                      <input id="to" class="form-control" type="text" name="set_dutyend" value="<?php echo $this->_tpl_vars['set_data']['set_dutyend']; ?>
">
                                        <div class="input-group-addon">
                                            <i class="fa fa-calendar"></i>
                                        </div>
                                </div>
                        </div>                                 
                    </div><!--box-body --> 
                     <div class="box-header with-border">
                        <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                        <p class="box-title">课时补贴设置</p>
                    </div>
                    <div class="box-body">
                        <div class="form-group" >
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     首尾周是否计整周：
                                </label>
                                <div class="input-group col-md-4">
                                      <label class="choice"><input type="radio" name="hour_isweek" value="1" <?php if ($this->_tpl_vars['set_data']['hour_isweek'] == '1'): ?>checked<?php endif; ?>> 是</label>
                                      <label class="choice"><input type="radio" name="hour_isweek" value="0" <?php if ($this->_tpl_vars['set_data']['hour_isweek'] == '0'): ?>checked<?php endif; ?>> 否</label>
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     课时费设置：
                                </label>
                                <div class="input-group col-md-4">
                                     <input type="text" class="form-control" name="set_hoursub" value="<?php echo $this->_tpl_vars['set_data']['set_hoursub']; ?>
" placeholder="每节课费用">
                                </div>
                        </div>                                
                    </div><!--box-body -->
                    <div class="box-header with-border">
                        <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                        <p class="box-title">超课时补贴设置</p>
                    </div>
                    <div class="box-body">
                        <div class="form-group" >
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     周标准课时设置：
                                </label>
                                <div class="input-group col-md-4">
                                      <input type="text" class="form-control" name="set_hourlimit" value="<?php echo $this->_tpl_vars['set_data']['set_hourlimit']; ?>
" placeholder="每周标准课时">
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     超课时补贴设置：
                                </label>
                                <div class="input-group col-md-4">
                                     <input type="text" class="form-control" name="set_uphoursub" value="<?php echo $this->_tpl_vars['set_data']['set_uphoursub']; ?>
" placeholder="每超出一节课补贴费用">
                                </div>
                        </div>                                
                    </div><!--box-body --> 
                    <div class="box-header with-border">
                        <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                        <p class="box-title">代课补贴费用设置</p>
                    </div>
                    <div class="box-body">
                        <div class="form-group" >
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     代课补贴：
                                </label>
                                <div class="input-group col-md-4">
                                      <input type="text" class="form-control" name="set_adjustsub" value="<?php echo $this->_tpl_vars['set_data']['set_adjustsub']; ?>
" placeholder="每节课补贴费用">
                                </div>
                        </div>                             
                    </div><!--box-body --> 
                    <div class="box-header with-border">
                        <span class="fa fa-edit" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                        <p class="box-title">缺课应扣费用设置</p>
                    </div>
                    <div class="box-body">
						<?php $_from = $this->_tpl_vars['set_data']['list_adjustcost']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                        <div class="form-group" >
                                <label class="col-md-3 text-right control-label" style="font-weight:500;">
                                     <?php echo $this->_tpl_vars['key']; ?>
：
                                </label>
                                <div class="input-group col-md-4">
                                      <input type="text" class="form-control" name="set_adjustcost_<?php echo $this->_tpl_vars['key']; ?>
" value="<?php echo $this->_tpl_vars['value']; ?>
" placeholder="每节课应扣费用">
                                </div>
                        </div>
						<?php endforeach; endif; unset($_from); ?>
                        
                    </div><!--box-body --> 
                    <div class="box-footer text-center">
                        <button type="submit" class="btn btn-primary"> 确 定</button>   	   
                    </div>
                  </form>  
             </div><!--box box-default box-solid-->
          </section> 
        </div><!--row-->
    </section>
 </div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script>
  $(function() {
    $( "#from" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
	  changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#to" ).datepicker( "option", "minDate", selectedDate );
      }
    });
    $( "#to" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
	  changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#from" ).datepicker( "option", "maxDate", selectedDate );
      }
    });
  });
  </script>
